import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-08-01
 * Time: 14:44
 */
public class Test2 {
    public static void main(String[] args) {
        MySingleList list=new MySingleList();
        list.addFirst(33);
        list.addFirst(44);
        list.addFirst(55);
        list.addFirst(66);
        list.addFirst(77);
        list.display();
        System.out.println();
//        list.reversal();
//        list.display();
//        System.out.println();
//        System.out.println(list.middleNode());
        System.out.println(list.getNode(3));

    }
}
